#include <stdio.h>
void main()
{
    int i,x,n,flag=1;
    for(n=6;flag;n++)
    {
        for(x=n,i=1&&flag;i<=5;i++)
            if((x-1)%5==0)
                x=4*(x-1)/5;
            else
                flag=0;
        if(flag)
            break;
        else
            flag=1;
    }
    printf("Total number of fish catched =%d\n",n);
}